package com.helin.helinhealth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * AI问答知识库
 * </p>
 *
 * @author HuangHaihang
 * @since 2025-04-25
 */
@Getter
@Setter
@TableName("ai_qa")
@Schema(description = "AI问答知识库表")
public class AiQa implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "问题")
    @TableField("question")
    private String question;

    @Schema(description = "答案")
    @TableField("answer")
    private String answer;

    @Schema(description = "命中次数")
    @TableField("hit_count")
    private Integer hitCount;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "逻辑删除标记")
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;
}
